How to create a simple file transfer program using python